#ifndef MONWIDGETQUESTIONQCM_H
#define MONWIDGETQUESTIONQCM_H

#include <QtGui>

class MonWidgetQuestionQCM : public QWidget
{
    Q_OBJECT

    QString question;
    QStringList reponses;

    QLayout *layout;

    QLabel *labelQuestion;
    QList<QCheckBox*> checkboxReponses;
    QPushButton *boutonValider;

    QTimer timer;
    int cpt;

public:
    MonWidgetQuestionQCM(const QString& question, const QStringList& reponses);
    //~MonWidgetQuestionQCM();

public slots:
    void onClick_boutonValider();
    void updateTemps();

signals:
    void valider(QStringList);
};

#endif // MONWIDGETQUESTIONQCM_H
